#define _CRT_SECURE_NO_WARNINGS 520
#include<stdio.h>
int main()
{
	int n = 0;
	scanf("%d", &n);
	int arr[n];
	for (int i = 0; i < n; i++)
	{
		arr[i] = i;
		printf("%d ", arr[i]);
	}
	return 0;
}